"""
一个不可以改变的数据结构 类似列表
"""

# t0 = ()
# t1 = tuple()
# print(type(t0), type(t1))
#
# t2 = (1,)
# t3 = 1,
# print(type(t2), type(t3))
#
# t4 = (1, 2, 3,)
# t5 = 1, 2, 3
# print(type(t4), type(t5), t5)


# l0 = (1, 2, 3)
# print(len(l0), l0[0], l0[2])
#
# # l0[1] = 20
#
# # 找元素对应的索引 找不到会报错
# print(l0.index(2))
# # 统计元素出现的次数
# print(l0.count(20))


# l0 = (10,20,30,40,50,60,70)
# for e in l0:
#     print(e)

# for i in range(len(l0)):
#     print(l0[i])


# l0 = [1, 3.14, "hello", False, True, None, ["A", "B", "C", ("a", "b", "c")]]
# # for e in l0:
# #     print(e)
#
# # for e in l0[-1]:
# #     print(e)
#
# for e in l0[-1][-1]:
#     print(e)


t0 = (1, 3.14, "hello", True, False, None, ("A", "B", "C", ["a", "b", "c"]))
# for e in t0:
#     print(e)

# for e in t0[-1]:
#     print(e)


for e in t0[-1][-1]:
    print(e)


    {}.__hash__